package com.xinchen.ssh.demo.utils;

/**
 * Description：
 *
 * @author Xin Chen
 * @version 1.0
 * @date 2016/12/15 11:00
 * @see 2016/12/15 11:00 Created
 ****************************************/
public final class SqlUtil {
    private SqlUtil() {
    }

    public static String parseLikeString(String str) {
        return str == null?null:str.replaceAll("([\\\\])", "$1$1").replaceAll("([_%＿％])", "\\\\$1");
    }
}
